class ItemRecommend < ActiveRecord::Base
  belongs_to :recommend_subject
  
  validates_presence_of :recommend_subject_id, :relation_id
  validates_uniqueness_of :relation_id, :scope => :recommend_subject_id, :message => '不能重复添加'

end
